package edu.sctu.wulixia.month4and5.day20150518;

/**
 * Created by user14 on 2015/5/18.
 */
public class TestMore {
    public void sotrNumber(Teacher[] teacher){
        Teacher[] teacherone = new Teacher[teacher.length];
        for(int i = 0;i<(teacherone.length-1);i++){
            for(int j = 0;j<(teacherone.length-1);j++){
                   if (teacher[j].number > teacher[j+1].number){
                       teacherone[0] = teacher[j];
                       teacher[j] = teacher[j+1];
                       teacher[j+1] = teacherone[0];

                   }
            }
        }
    }

    public void sortStudent(Student[] student){
        Student[] studentone = new Student[student.length];
        for(int i = 0;i<(studentone.length-1);i++){
            for(int j = 0;j<(studentone.length-1);j++){
                if (student[j].number > student[j+1].number){
                    studentone[0] = student[j];
                    student[j] = student[j+1];
                    student[j+1] = studentone[0];

                }
            }
        }
    }

    public void pritCoded(){
        Teacher teachertwo = null;

    }
}
